void main() {
    int a = 2;
    int b = 3;
    double x = 3.5;
    double y = 2.5;
    float part1 = (float)(a+b)/2;
    int part2 = (int)x%(int)y;
    float result = part1 + part2;
    System.out.println("计算结果为：" +result);
}